package com.swd.order.controller;

import com.swd.order.service.PlaceService;
import com.swd.order.vo.Ret;
import com.swd.order.vo.Rets;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("place")
public class PlaceController {
    @Autowired
    private PlaceService placeService;

    @GetMapping("all")
    public Ret getAll(){
        return Rets.success(placeService.queryAll());
    }
}
